package com.zzy.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 邹靓仔
 * @date 2020/4/30 -15:39 -zzy-shop
 **/
@RestController
public class LoginController {
    @PostMapping("/doLogin")
    public Map doLogin(String phone, String password){
        Map res = new HashMap();
        if ((phone.equals("15119245488")&& password.equals("123456"))){
            res.put("code",200);
            res.put("result","ok");
        }else {
            res.put("result","no");
        }
        return res;
    }

}
